//<<<<<<< .mine
//package cn.xspace.wnx.fragment;
//
//import android.view.LayoutInflater;
//import android.view.View;
//import android.widget.ListView;
//
//import com.cn.wt.wtutils.log.LogUtils;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import com.xspace.android.xafcommon.base.BaseFragment;
//import cn.xspace.wnx.R;
//import cn.xspace.wnx.adapter.WNJHMessageListAdapter;
//
//import cn.xspace.wnx.entity.NoticeOrWNX;
//import rx.Subscriber;
//import rx.android.schedulers.AndroidSchedulers;
//import rx.schedulers.Schedulers;
//
///**
// * 微农聚合的Fragment
// */
//public class ChildFragment extends BaseFragment {
//
////    @Nullable
//
//
//    private View contentView;
//    private ListView mListView;
//    private String titles;
//    private List<NoticeOrWNX> noticeOrWNX;
//    private WNJHMessageListAdapter wnjhMessageListAdapter;
//
//
//    public ChildFragment() {
//    }
//
//    @Override
//    public View initView(LayoutInflater inflater) {
//        contentView = inflater.inflate(R.layout.fragment, null, false);
//        return contentView;
//    }
//
//    @Override
//    protected void initFindViewById(View view) {
//        mListView = (ListView) contentView.findViewById(R.id.listview);
//    }
//
//    @Override
//    public void initData() {
//        noticeOrWNX = new ArrayList<>();
//        wnjhMessageListAdapter = new WNJHMessageListAdapter(mContext, noticeOrWNX);
//        mListView.setAdapter(wnjhMessageListAdapter);
////        mListView.setOnDragListener(this, noticeOrWNX);
//        refreshData();
//    }
//
//    private void refreshData() {
//        noticeOrWNX.clear();
//        wnjhMessageListAdapter.notifyDataSetChanged();
////        NoticeOrWNXDao.getInstance().getiNoticeData().getDBInfoListbyMsgType(titles)
////                .subscribeOn(Schedulers.io())
////                .observeOn(AndroidSchedulers.mainThread())
////                .subscribe(subscriber);
//    }
//
//    Subscriber<List<NoticeOrWNX>> subscriber = new Subscriber<List<NoticeOrWNX>>() {
//        @Override
//        public void onCompleted() {
//        }
//
//        @Override
//        public void onError(Throwable e) {
//        }
//
//        @Override
//        public void onNext(List<NoticeOrWNX> list) {
//            noticeOrWNX.addAll(list);
//            for (NoticeOrWNX orWNX : noticeOrWNX) {
//                LogUtils.e("aaaaaaaaaaaa:" + orWNX.toString());
//            }
//            refreshList();
//        }
//    };
//
//    private void refreshList() {
//        wnjhMessageListAdapter.notifyDataSetChanged();
//    }
//
//    @Override
//    protected void initEvent() {
//
//    }
//}
//=======
////
////    @Override
////    protected void initFindViewById(View view) {
////        mListView = (ListView) contentView.findViewById(R.id.listview);
////    }
////
////    @Override
////    public void initData() {
////        noticeOrWNX = new ArrayList<>();
////        wnjhMessageListAdapter = new WNJHMessageListAdapter(mContext, noticeOrWNX);
////        mListView.setAdapter(wnjhMessageListAdapter);
//////        mListView.setOnDragListener(this, noticeOrWNX);
////        refreshData();
////    }
////
////    private void refreshData() {
////        noticeOrWNX.clear();
////        wnjhMessageListAdapter.notifyDataSetChanged();
////        NoticeOrWNXDao.getInstance().getiNoticeData().getDBInfoListbyMsgType(titles)
////                .subscribeOn(Schedulers.io())
////                .observeOn(AndroidSchedulers.mainThread())
////                .subscribe(subscriber);
////    }
////
////    Subscriber<List<NoticeOrWNX>> subscriber = new Subscriber<List<NoticeOrWNX>>() {
////        @Override
////        public void onCompleted() {
////        }
////
////        @Override
////        public void onError(Throwable e) {
////        }
////
////        @Override
////        public void onNext(List<NoticeOrWNX> list) {
////            noticeOrWNX.addAll(list);
////            for (NoticeOrWNX orWNX : noticeOrWNX) {
////                LogUtils.e("aaaaaaaaaaaa:" + orWNX.toString());
////            }
////            refreshList();
////        }
////    };
////
////    private void refreshList() {
////        wnjhMessageListAdapter.notifyDataSetChanged();
////    }
////
////    @Override
////    protected void initEvent() {
////
////    }
////}
//>>>>>>> .r22526
